import TotalDataPie from '@/components/chart/TotalDataPie'
import KeywordNatureMonthPie from '@/components/chart/KeywordNatureMonthPie'
import IndustryMonthPie from '@/components/chart/IndustryMonthPie'
import RegionProvinceDataPie from '@/components/chart/region/RegionProvinceDataPie'
import RegionCityDataPie from '@/components/chart/region/RegionCityDataPie'
import ChannelTypeMonthPie from '@/components/chart/ChannelTypeMonthPie'

const routers = [
  {path: 'total-data-pies', component: TotalDataPie},
  {path: 'keyword-nature-month-pies', component: KeywordNatureMonthPie},
  {path: 'industry-month-pies', component: IndustryMonthPie},
  {path: 'region-province-pie', component: RegionProvinceDataPie},
  {path: 'region-city-pie', component: RegionCityDataPie},
  {path: 'channel-type-month-pie', component: ChannelTypeMonthPie}
]

const menu = {
  title: '总数据分析',
  icon: 'glass',
  flag: false,
  sons: [
    {
      title: '总数据月占比图',
      icon: 'pie-chart',
      path: '/chart/total-data-pies',
      perm: '',
      flag: false
    },
    {
      title: '词性月占比图',
      icon: 'pie-chart',
      path: '/chart/keyword-nature-month-pies',
      perm: 'natureDataAnalyse:monthPie',
      flag: false
    },
    {
      title: '行业月占比图',
      icon: 'pie-chart',
      path: '/chart/industry-month-pies',
      perm: 'industryDataAnalyse:monthPie',
      flag: false
    },
    {
      title: '省份月占比图',
      icon: 'pie-chart',
      path: '/chart/region-province-pie',
      perm: 'analysisRegionData:pie',
      flag: false
    },
    {
      title: '城市月占比图',
      icon: 'pie-chart',
      path: '/chart/region-city-pie',
      perm: 'analysisRegionDataCity:pie',
      flag: false
    },
    {
      title: '渠道类型月占比图',
      icon: 'pie-chart',
      path: '/chart/channel-type-month-pie',
      perm: 'channelTypeAnalysis:monthPie',
      flag: false
    }
  ]
}

export default {
  routers,
  menu
}
